// store.js
import { reactive, computed } from 'vue';

const state = reactive({
  ScienceData: null,
});

export function useStore() {
  const setScienceData = (data) => {
    state.ScienceData = data;
  };

  const getScienceData = computed(() => state.ScienceData);

  const resetScienceData = () => {
    state.ScienceData = null;
  };

  return {
    setScienceData,
    getScienceData,
    resetScienceData,
  };
}